#include "logoffwarning.h"
#include "ui_logoffwarning.h"
#include<QDebug>
LogOffWarning::LogOffWarning(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::LogOffWarning)
{
    ui->setupUi(this);
    setFixedSize(630,420);
    setAttribute(Qt::WA_DeleteOnClose);
    setWindowModality(Qt::ApplicationModal);
    setWindowIcon(QIcon(":/img/application.png"));
}

LogOffWarning::~LogOffWarning()
{
    delete ui;
}

void LogOffWarning::on_confirmBtn_clicked()
{
    emit logOffSignal();
    close();
}


void LogOffWarning::on_cancelBtn_clicked()
{
    close();
}

